package com.program.beautymakeup.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.program.beautymakeup.domain.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author CaiKe
 * @date 2023/2/8 21:33
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> selectByUserName(String keyword);

    List<User> selectAll();

    int countByUsernameAndPassword(@Param("username")String username, @Param("password")String password);

}
